/* eslint-disable no-irregular-whitespace */

<template>
  <div class="page">
    <div class="info">
      <el-row>
        <el-col :span="8">
          <el-input placeholder v-model="info.name">
            <template slot="prepend">客户姓名</template>
          </el-input>
        </el-col>
        <el-col :span="8">
          <el-input placeholder v-model="info.address">
            <template slot="prepend">地 址</template>
          </el-input>
        </el-col>
        <el-col :span="8">
          <el-input placeholder v-model="info.tel">
            <template slot="prepend">电 话</template>
          </el-input>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="8">
          <el-input placeholder v-model="info.name">
            <template slot="prepend">镜架品牌</template>
          </el-input>
        </el-col>
        <el-col :span="8">
          <el-input placeholder v-model="info.address">
            <template slot="prepend">材 质</template>
          </el-input>
        </el-col>
        <el-col :span="8">
          <el-input placeholder v-model="info.tel">
            <template slot="prepend">货 号</template>
          </el-input>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="8">
          <el-input placeholder v-model="info.name">
            <template slot="prepend">镜片品牌</template>
          </el-input>
        </el-col>
        <el-col :span="8">
          <el-input placeholder v-model="info.address">
            <template slot="prepend">折射率</template>
          </el-input>
        </el-col>
        <el-col :span="8">
          <el-input placeholder v-model="info.tel">
            <template slot="prepend">材 质</template>
          </el-input>
        </el-col>
      </el-row>
    </div>
    <div>
      <table class="chufang" cellspacing="0" cellpadding="0">
        <tr>
          <td rowspan="2" width="16%" colspan="2">验光处方</td>
          <td width="16%">球镜</td>
          <td width="16%">柱镜</td>
          <td width="16%">轴位</td>
          <td width="16%">视力</td>
          <td width="16%">瞳距</td>
        </tr>
        <tr>
          <td>SPH</td>
          <td>CYL</td>
          <td>AXIS</td>
          <td>V</td>
          <td>PD</td>
        </tr>
        <tr>
          <td rowspan="2">
            远
            <br />用
          </td>
          <td>右R</td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td rowspan="2">
            <el-input class="eye-params-input" />
            <span class="unit">mm</span>
          </td>
        </tr>
        <tr>
          <td width="8%">左L</td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td>
            <el-input class="eye-params-input" />
          </td>
        </tr>
        <tr>
          <td rowspan="2">
            近
            <br />用
          </td>
          <td>右R</td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td rowspan="2">
            <el-input class="eye-params-input" />
            <span class="unit">mm</span>
          </td>
        </tr>
        <tr>
          <td width="8%">左L</td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td>
            <el-input class="eye-params-input" />
          </td>
          <td>
            <el-input class="eye-params-input" />
          </td>
        </tr>
      </table>
    </div>
    <div class="money">
      <el-row>
        <el-col :span="8">
          <el-input placeholder v-model="info.name">
            <template slot="prepend">镜架单价</template>
            <template slot="append">元</template>
          </el-input>
        </el-col>
        <el-col :span="8">
          <el-input placeholder v-model="info.address">
            <template slot="prepend">镜片单价</template>
            <template slot="append">元</template>
          </el-input>
        </el-col>
        <el-col :span="8">
          <el-input placeholder v-model="info.tel">
            <template slot="prepend">总额</template>
            <template slot="append">元</template>
          </el-input>
        </el-col>
      </el-row>
    </div>
    <div class="save-box">
      <el-row>
        <el-col :span="8">
          <el-input placeholder v-model="info.name">
            <template slot="prepend">配镜时间</template>
          </el-input>
        </el-col>
        <el-col :span="8">
          <el-input placeholder v-model="info.name">
            <template slot="prepend">验光师</template>
          </el-input>
        </el-col>
        <el-col :span="8">
          <el-button>重置</el-button>
          <el-button>保存</el-button>
        </el-col>
      </el-row>
    </div>
  </div>
</template>
<script>
export default {
  name: 'order-create',
  meta: {
    title: '创建订单'
  },
  data () {
    return {
      info: {
        name: '',
        time: '',
        tel: '',
        yongtu: '',
        qiujingz: '',
        qiujingy: '',
        zhujingz: '',
        zhujingy: '',
        zhouxiangz: '',
        zhouxiangy: '',
        jiaozhengz: '',
        jiaozhengy: '',
        zongtongju: '',
        jingjia: '',
        jingpian: '',
        money: '',
        note: '',
        sex: ''
      }

    }
  },
  created () {
    this.time = (new Date()).toString()
  }
}
</script>
<style scoped lang="less">
@nice-blue: #42b983;
.page {
  & /deep/.el-input-group__prepend {
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0 5px 0 10px;
  }
  & /deep/.el-input-group__append {
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0 20px 0 5px;
  }
  & > div {
    background: #ffffff;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 0 3px 0 rgba(0, 0, 0, 0.04);
  }
  & .info,
  & .money,
  & .save-box {
    & /deep/.el-input__inner {
      padding: 0 5px;
      background-color: transparent;
      border: 0 solid transparent;
      border-bottom: 1px solid #dcdfe6;
      &:focus {
        border-bottom: 1px solid @nice-blue;
      }
    }
  }
  .save-box {
    position: absolute;
    bottom: 0;
    width: 100%;
  }
}
.chufang {
  width: 100%;
  border: 0;
  background: #ffffff;
  td {
    border: 1px solid #dcdfe6;
    text-align: center;
    height: 32px;
    line-height: 32px;
    position: relative;
  }
  .unit {
    position: absolute;
    bottom: 3px;
    right: 5px;
    height: 16px;
    line-height: 16px;
  }
  .eye-params-input {
    & /deep/ .el-input__inner {
      border-radius: 0px;
      &:focus {
        border-color: @nice-blue;
      }
    }
  }
}
</style>
